
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/style/basic_layout.css" rel="stylesheet" type="text/css">
    <link href="/style/common_style.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/commonAll.js"></script>
    <script type="text/javascript" src="/js/plugins/artDialog/jquery.artDialog.js?skin=blue"></script>

    <title>WMS-演示版</title>
    <style>
        .alt td{ background:black !important;}
    </style>
</head>
<body>
<form id="searchForm" action="/depot/list.do" method="post">
    <div id="container">
        <div class="ui_content">
            <div class="ui_text_indent">
                <div id="box_border">
                    <div id="box_top">搜索</div>

                    <div id="box_bottom">

                        <input type="button" value="新增" class="ui_input_btn01 btn_input" data-url="/depot/input.do"/>
                    </div>
                </div>
            </div>
        </div>
        <div class="ui_content">
            <div class="ui_tb">
                <table class="table" cellspacing="0" cellpadding="0" width="100%" align="center" border="0">
                    <tr>
                        <th width="30"><input type="checkbox" id="all" /></th>
                        <th>编号</th>
                        <th>仓库名称</th>
                        <th>仓库地址</th>

                        <th></th>
                    </tr>
                    <c:forEach items="${result.data}" var="entity" varStatus="num">
                    <tr>
                        <td><input type="checkbox" class="acb" /></td>
                        <td>${num.count}</td>
                        <td>${entity.name}</td>
                        <td>${entity.location}</td>

                        <td>
                            <a href="/depot/input.do?id=${entity.id}" >编辑</a>
                            <a data-delete="/depot/delete.do?id=${entity.id}" class="btn_delete">删除</a>
                        </td>
                    </tr>
                    </c:forEach>
                </table>
            </div>
            <div class="ui_tb_h30">
                <div class="ui_flt" style="height: 30px; line-height: 30px;">
                    共有
                    <span class="ui_txt_bold04">${result.rows}</span>
                    条记录，当前第
                    <span class="ui_txt_bold04">${result.currentPage}/${result.endPage}</span>
                    页
                </div>
                <div class="ui_frt">
                    <input type="button" value="首页" class="ui_input_btn01 btn_page" data-page="1"/>
                    <input type="button" value="上一页" class="ui_input_btn01 btn_page" data-page="${result.prevPage}"/>
                    <input type="button" value="下一页" class="ui_input_btn01 btn_page" data-page="${result.nextPage}"/>
                    <input type="button" value="尾页" class="ui_input_btn01 btn_page" data-page="${result.endPage}"/>

                    <select name="pageSize" class="ui_select02">
                        <option value="5">5</option>
                        <option value="10">10</option>
                        <option value="15">15</option>
                    </select>
                    <script>$("select[name='pageSize'] option[value='${result.pageSize}']").prop("selected",true)</script>


                    转到第<input type="text" name="currentPage" value="${result.currentPage}" class="ui_input_txt01" />页
                    <input type="button" class="ui_input_btn01 btn_page" value="跳转"/>
                </div>
            </div>
        </div>
    </div>
</form>
</body>
</html>

